package com.ruoyi.manage.domain;

import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

public class OrderDTO extends BaseEntity {
    private static final long serialVersionUID = 1L;

    // 下单用户ID，与 Order 类中的对应字段类型保持一致，方便进行数据转换和传递
    private Long userId;
    // 订单总金额，使用 BigDecimal 类型精确表示金额数值
    private BigDecimal totalAmount;
    // 订单状态，根据业务需求定义合适的状态表示方式，此处示例使用整数类型
    private Integer orderStatus;
    // 教材相关的ID（假设订单与教材有关联，可根据实际情况调整具体名称和类型）
    private Long textbookId;
    // 订购教材的数量（根据业务逻辑添加，比如购买操作时需要传递购买数量）
    private Integer quantity;

    @Override
    public String toString() {
        return "OrderDTO{" +
                "userId=" + userId +
                ", totalAmount=" + totalAmount +
                ", orderStatus=" + orderStatus +
                ", textbookId=" + textbookId +
                ", quantity=" + quantity +
                '}';
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Long getTextbookId() {
        return textbookId;
    }

    public void setTextbookId(Long textbookId) {
        this.textbookId = textbookId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
}